/**
 * Copyright(c) ${copyrightYear} ${company}
 * All rights reserved.
 * Created on ${date}
 */
package ${package}.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import ${package}.BaseEntity;

/**
 * 用户实体
 * 
 * @author ${author}
 * 
 */
@Entity
@Table(name = "tb_usr")
public class UserEntity extends BaseEntity<Long> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8353416299793047847L;

	/**
	 * ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID_")
	private Long id;
	/**
	 * 用户名
	 */
	@Column(name = "USR_NAM_", length = 12, nullable = false, unique = true)
	private String username;
	/**
	 * 登陆密码
	 */
	@Column(name = "PASSWD_", columnDefinition = "CHAR(24)", nullable = false)
	private String password;

	/**
	 * 获取用户名
	 * 
	 * @return
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * 设置用户名
	 * 
	 * @param username
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * 获取密码
	 * 
	 * @return
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * 设置密码
	 * 
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * 获取ID
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置ID
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}
}